package com.rescue.service.impl;

import com.rescue.forum.entity.EmailCode;
import com.rescue.mapper.EmailCodeMapper;
import com.rescue.service.EmailCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmailCodeServiceImpl implements EmailCodeService {
    @Autowired
    private EmailCodeMapper emailCodeMapper;
    @Override
    public EmailCode getByEmail(String to) {
        return emailCodeMapper.getByEmail(to);
    }
}
